#include "commandentered.h"
//
CommandEntered::CommandEntered(QString C,QString PC,QLineEdit *CommandEdit) 
	: QUndoCommand()
{
	setText("Command Entered");
	Com=C;
	PrevCom=PC;
	L=CommandEdit;
}

void CommandEntered::undo()
{
	L->setText(PrevCom);
}

void CommandEntered::redo()
{
	L->setText(Com);
}
//
